package com.panda.web.service.aims;

import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.panda.web.entity.aims.Questions;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panda.web.entity.aims.Questions;
import com.panda.web.utils.pageutils.PageResult;
import com.panda.web.domain.dto.QuestionsDTO;
import com.panda.web.domain.vo.QuestionsVO;


/**
 * 面试题库Service接口
 * 
 * @author cpanda
 * @date 2025-05-21
 */
public interface IQuestionsService extends IService<Questions> {
    //分页查询
    PageResult<QuestionsVO> PageList(QuestionsDTO dto, Integer pageNum, Integer pageSize);
    //无分页查询
    List<QuestionsVO> choiceList(QuestionsDTO dto);
    //回显数据
    QuestionsVO selectById(Long questionsId);

    //新增
    int insert(QuestionsDTO dto);
    //修改数据
    int updateQuestionsById(QuestionsDTO dto);
    //删除数据（逻辑删除）
    int removeByQuestionsIds(List<Long> ids);

    /**
     * 这里要调用工作流Api
     * @param dto
     * @return
     */
//    int getEnterprise(QuestionsDTO dto) throws NoApiKeyException, InputRequiredException;
}
